package net.uhuijia.sys.syssetting.clientservice;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "UHUIJIA-SYS-PROVIDER-8006",fallbackFactory=SysSettingClientServiceFallbackFactory.class)
public interface SysSettingClientService {
	

	/**
	 * 根据key获得value 如果成功返回success
	 * @param key
	 * @return
	 */
	@RequestMapping(value = "/sysSetting/getValueByKey")
	public String getValueByKey(String key);
	
	/**
	 * 根据key 设置 value值   如果成功返回success（如果没有key值则会添加）
	 * @param key
	 * @param value
	 * @return
	 */
	@RequestMapping(value = "/sysSetting/setValueByKey")
	public String setValueByKey(@RequestParam("key")String key, @RequestParam("value")String value);
	
}
